package com.kwin.rpcserver.holder;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author : wangkai
 * @version V1.0
 * @Package com.kwin.rpcserver.holder
 * @Description:
 * @date 2021年07月30日 15:59
 **/
public class RpcBeanHolder {
    
    private static Map<String, Object> intf2Bean = new ConcurrentHashMap<>();
    
    public static void put(String intf, Object bean) {
        intf2Bean.put(intf, bean);
    }
    
    public static void remove(String intf) {
        intf2Bean.remove(intf);
    }
    
    public static Object get(String intf) {
        return intf2Bean.get(intf);
    }
    
}
